<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use app\index\model\Apply as ApplyModel;
use think\Validate;

/**
 * 用户申请
 */
class Apply extends Frontend
{
    protected $layout = 'user';
    protected $noNeedRight = ['*'];

    /**
     * 列表
     */
    public function index()
    {
        $user = $this->auth->getUser();
        $model = new ApplyModel;
        $list = $model->getList($user['id']);
        $this->view->assign('title', __('My apply'));
        return $this->view->fetch('index',compact('list'));
    }
}
